import request from '@/request';
import type {editFormData , addFormData} from '../@types/index';

/**获取标签列表*/
export const getLable = (params: { page: number, pageSize: number , title ?: string}) => {
    return request({
        url: '/api/v2/admin/getLable',
        method: 'get',
        params
    })
} 

/**添加C端用户*/
export const addLable = (data: addFormData ) => request({
    url: '/api/v2/admin/addLable',
    method: 'post',
    data
}) 

/**删除标签*/
export const delLable = (data: { ID: string }) => request({
    url: '/api/v2/admin/delLable',
    method: 'post',
    data
})

/**更新标签信息*/
export const updateLable = (data: editFormData) => request({
    url: '/api/v2/admin/updateLable',
    method: 'post',
    data
})